<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:forEach items="${notifications}" var="notification" >
    <div class="message ${notification.type}"><c:out value="${notification.text}" /></div>
</c:forEach>